package study2019.jedis;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Student implements Serializable {

	private static final long serialVersionUID = -7445201402041865003L;


	public Student() {
	}

	public Student(int age, String name, String idNo, String classNo) {
		this(age, name, idNo, classNo, new ArrayList<>());
	}

	public Student(int age, String name, String idNo, String classNo, List hobbys) {
		this.age = age;
		this.name = name;
		this.idNo = idNo;
		this.classNo = classNo;
		this.hobbies = hobbys;
	}

	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 年龄
	 */
	private int age;
	/**
	 * 学号
	 */
	private String idNo;
	/**
	 * 班级号
	 */
	private String classNo;
	private List<Hobby> hobbies;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getIdNo() {
		return idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}

	public String getClassNo() {
		return classNo;
	}

	public void setClassNo(String classNo) {
		this.classNo = classNo;
	}

	public List<Hobby> getHobbies() {
		return hobbies;
	}

	public void setHobbies(List<Hobby> hobbies) {
		this.hobbies = hobbies;
	}

	@Override
	public String toString() {
		return "\n Student [name=" + name + ", age=" + age + ", idNo=" + idNo + ", classNo=" + classNo + ",\n hobbies="
				+ hobbies + " \n]";
	}


}
